package com.fc.v2.controller.admin;

import com.fc.v2.common.base.BaseController;
import com.fc.v2.common.domain.ResuTree;
import com.fc.v2.service.AdminService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
public class AdminController extends BaseController {

    @Resource
    private AdminService adminService;

    @GetMapping("/login")
    public ResuTree Login(){
        return dataTree(adminService.login());
    }
}
